testCase32='DBshop032_删除特定商品标签流程'
import  time
from public.action import *
from public.testData import *
from public.tools import*
from public.business import *
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','商品标签','特定商品标签')
firefox.find_element_by_xpath('//td[contains(.,"手机端首页商品")]/following-sibling::td[2]/a[2]').click()#轴定位到手机端首页商品
firefox.switch_to.alert.accept()#处理java链接
time.sleep(4)
try:
    firefox.find_element_by_xpath('//td[contains(.,"手机端首页商品")]').is_displayed()#断言手机端商品首页
    writeLog('%s 测试不通过'%testCase32)
    getPhoto(firefox)
except:
    writeLog('%s 测试通过'%testCase32)




